package com.cz.zslu.service.impl;

import com.cz.zslu.entity.ZslOrderEvaluate;
import com.cz.zslu.mapper.ZslOrderEvaluateMapper;
import com.cz.zslu.service.IZslOrderEvaluateService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 订单评价管理 服务实现类
 * </p>
 */
@Service
public class ZslOrderEvaluateServiceImpl extends ServiceImpl<ZslOrderEvaluateMapper, ZslOrderEvaluate> implements IZslOrderEvaluateService {

    /**
     * 计算商品平均分
     *
     * @param commodityId
     * @return
     */
    @Override
    public Double gradeAvg(Long commodityId) {
        return baseMapper.gradeAvg(commodityId);
    }
}
